package com.hoas.keystore.decoder;

import java.util.Map;

public interface IDecoder {

    String decryptBody(String data, String saltKey) throws Exception;

    String encryptBody(String data, String saltKey) throws Exception;

    /**
     * 解码数据
     *
     * @param data
     * @return
     * @throws Exception
     */
    String decryptBody(String data) throws Exception;

    /**
     * 编码数据
     *
     * @param data
     * @return
     * @throws Exception
     */
    String encryptBody(String data) throws Exception;

    String sign(String data);

    boolean verify(String data, String signstr);
}
